import request from '@/router/axios';

// 获取dcs数据点值状态列表
export const getStates = () => { 
  return request({
    url: '/api/blade-system/dict-biz/dictionary?code=dcs_data_val_is_exceedStandard',
    method: 'get'
  })
}

// 查询
export const getList = (current, size, params) => {
  return request({
    url: '/api/configuration/dcsdatasiteval/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 归档
export const archiveDcs = (startTime, endTime) => {
  return request({
    url: '/api/configuration/dcsdatasiteval/pigeonhole',
    method: 'post',
    params: {
      startTime,
      endTime
    }
  })
}